package com.luwak.controller.sys;

import com.luwak.common.base.R;
import com.luwak.common.utils.PageUtils;
import com.luwak.modules.sys.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author ChenXc
 * @version V1.0
 * @Date 2018/3/22  16:51
 * @Description TODO(一句话描述类作用)
 */
@RestController
@RequestMapping("/sys/log")
public class SysLogController {

    @Autowired
    private SysLogService sysLogService;

    @GetMapping("/list")
    public R list(@RequestParam Map<String, Object> params){

        PageUtils page = sysLogService.queryPage(params);

        return R.ok().put("page", page);
    }
}
